# 编译加了libpmem库的源文件时加上-l pmem参数进行编译
# 在这个makefile中添加ycsb测试的相关编译命令，运行ycsb


.PHONY:clean run

CC = g++
RM = rm
INCLUDE = ../include/

OBJS = data_page.o pm_ehash.o ycsb.o
EXE = ycsb

$(EXE):$(OBJS)
	$(CC) -o $@ $^ -lpmem

%.o:%.cpp
	$(CC) -c $^ -I $(INCLUDE) -o $@
 
clean:
	$(RM) $(EXE) $(OBJS)

run:
	sudo ./$(EXE)
	
